; * lisp/vc/diff-mode.el (diff--refine-hunk): Escape literal `+`.
authorMattias Engdegård <mattiase@acm.org>
Sun, 3 Mar 2024 14:55:30 +0000 (15:55 +0100)
committerMattias Engdegård <mattiase@acm.org>
Mon, 4 Mar 2024 13:13:26 +0000 (14:13 +0100)
lisp/vc/diff-mode.el

index 99ac50c155a08b25b9e6d74eb4e97dc2e1b7e956..ac7d55c8a4683e2705e0a14fcbc9c7f54bf54b52 100644 (file)
@@ -2353,7 +2353,7 @@ by `diff-refine-hunk'."
                                         (match-end 0)
                                         'diff-refine-removed))
              (goto-char middle)
-             (while (re-search-forward "^\\(?:+.*\n\\)+" end t)
+             (while (re-search-forward "^\\(?:\\+.*\n\\)+" end t)
                (diff--refine-propertize (match-beginning 0)
                                         (match-end 0)
                                         'diff-refine-added))))))